#ifndef LAN2TIME_H
#define LAN2TIME_H

#include "lan2calhhp.h"
#include "lan2callineedit.h"
#include "lan2calmmp.h"
#include "lan2Calssp.h"

#include <QObject>
#include <QWidget>
#include <QHBoxLayout>
#include <QLineEdit>
#include "lan2core.h"
LAN2STA
class Lan2CalTime : public QWidget
{
    Q_OBJECT
public:
    explicit Lan2CalTime(QWidget *parent = nullptr,int width=360,int height=40);
    QHBoxLayout* hbox=nullptr;
    Lan2CalLineEdit* le_hh=nullptr;
    Lan2CalLineEdit* le_mm=nullptr;
    Lan2CalLineEdit* le_ss=nullptr;
    const int mwle=22;

    void method_sethhtxt(const QString & txt);
    void method_setmmtxt(const QString & txt);
    void method_setsstxt(const QString & txt);

    void method_sethhmmsstxt(const QString & hh,const QString & mm,const QString& ss);
    QString method_gethh() const;
    QString method_getmm() const;
    QString method_getss() const;

    Lan2CalHhp* mplane_hh=nullptr;
    Lan2CalMmp* mplane_mm=nullptr;
    Lan2CalSsp* mplane_ss=nullptr;

    void method_movehhplane(int x,int y);
    void method_setplanehhVisble(bool b);

    void method_movemmplane(int x,int y);
    void method_movessplane(int x,int y);

    void method_delhhplane();
    void method_delmmplane();
    void method_delssplane();

    void method_hideAllPlane();



signals:

public slots:
    void slot_hhclick();
    void slot_mmclick();
    void slot_ssclick();
    void slot_hhsendword(const QString& );
    void slot_mmsendword(const QString& );
    void slot_sssendword(const QString& );

    void slot_reset2start();
    void slot_reset2end();
//    void slot_reset2all();




};

LAN2END
#endif // LAN2TIME_H
